package cn.liyao.web.model;

import cn.liyao.web.constant.ReadStatus;
import com.sun.javafx.beans.IDProperty;
import lombok.Data;

import javax.persistence.*;


@Table(name = "t_messages_user")
@Data
@Entity
public class UserMessage {

    @Id
    @Column(unique = true,columnDefinition = "VARCHAR(64)")
    private String id;

    @Column(columnDefinition = "VARCHAR(64)")
    private String fp;


    private String userId;

    @Enumerated(EnumType.STRING)
    @Column(name = "status", length = 10)
    private ReadStatus readStatus;


    // 消息正常 0  1 用户已经删除
    private Integer deletedStatus = 0;


    private String targetId;

}
